package com.paper.tiger.datasource.common;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.annotation.Order;

import java.util.LinkedHashMap;
import java.util.Map;

/**
 * [简要描述]: 数据源配置相关
 * [详细描述]:
 *
 * @author ZouHaiBo
 * @version 1.0, 2021/5/19 11:23
 * @since JDK 1.8
 */
@Order(50)
@Configuration
@ConfigurationProperties(prefix = "spring.datasource.dynamic")
public class DataSourceConfigProperties
{

    private Map<String, DataSourceConfig> source = new LinkedHashMap<>();


    public Map<String, DataSourceConfig> getSource()
    {
        return source;
    }

    public void setSource(Map<String, DataSourceConfig> source)
    {
        this.source = source;
    }


}
